package Case1.MainForCase1;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderItem {
    private Integer id;
    private String goodsName;
    private BigDecimal goodsPrice;
    private Integer count;
    public Integer orderId;
//创建一个独属于订单的
    private Order order;

    public OrderItem(String goodsName, BigDecimal goodsPrice, Integer count) {
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.count = count;
    }
}
